#!/usr/bin/env python
import os
import sys
import django

# 设置Django环境
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inter_api.settings')
django.setup()

from django.contrib.auth import get_user_model

User = get_user_model()

def check_user():
    users = User.objects.filter(username='zhangsan2024')
    print(f'Found {users.count()} users')
    for u in users:
        print(f'User: {u.username}, Email: {u.email}')

if __name__ == '__main__':
    check_user()